package com.spicesoft.o3d.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.RootPanel;
import com.spicesoft.o3d.client.O3DClient;
import com.spicesoft.o3d.client.O3DSimple;
import com.spicesoft.o3d.client.O3DSimpleShape;

public class HelloBoxEP implements EntryPoint {

	private O3DClient client;

	@Override
	public void onModuleLoad() {
		client = new O3DClient(new AsyncCallback<Void>() {
			@Override
			public void onFailure(Throwable caught) {

			}

			@Override
			public void onSuccess(Void result) {
				System.out.println("hahahahaha");
				O3DSimple gSimple = O3DSimple.create(client);
				O3DSimpleShape gCube = gSimple.createCube(50);
			}
		});
		client.setWidth("500px");
		client.setHeight("300px");
		RootPanel.get().add(client);
	}
}
